package fitnesshub.service;

import fitnesshub.pojo.dto.AddConsumptionRecordDTO;
import fitnesshub.pojo.dto.ConsumptionRecordPageQueryDTO;
import fitnesshub.pojo.vo.MemberConsumptionRecordVO;
import fitnesshub.result.PageResult;

import java.util.List;

public interface ConsumptionRecordService {
    /**
     * 消费记录分页
     * @param consumptionRecordPageQueryDTO
     * @return
     */
    PageResult page(ConsumptionRecordPageQueryDTO consumptionRecordPageQueryDTO);

    /**
     * 添加消费记录
     * @param addConsumptionRecordDTO
     * @return
     */
    void addConsumptionRecord(AddConsumptionRecordDTO addConsumptionRecordDTO);

    /**
     * 根据用户id查消费记录
     *
     * @param memberId
     * @return
     */
    List<MemberConsumptionRecordVO> getById(Integer memberId);
}
